package chw.dubbo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class DubboClientApplication {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("spring-client.xml");
        UserService userService = (UserService) context.getBean("userService");
        while (System.in.read() != 'q'){
            System.out.println(userService.getUser(666));
        }
    }

}
